import request from '@/utils/request'

export function prizePoolList(query) {
  return request({
    url: '/jbl-marketing/api/admin/v1/coupon/pageList',
    method: 'get',
    params: query
  })
}

export function prizePoolUpdate(data) {
  return request({
    url: '/jbl-marketing/api/admin/v1/coupon/updateById',
    method: 'post',
    data
  })
}

export function prizePoolDetail(query) {
  return request({
    url: '/jbl-marketing/api/admin/v1/coupon/getById',
    method: 'get',
    params: query
  })
}

export function prizePoolAgencyList(query) {
  return request({
    url: '/jbl-marketing/api/admin/v1/coupon/getBusiness',
    method: 'get',
    params: query
  })
}

export function prizePoolAdd(data) {
  return request({
    url: '/jbl-marketing/api/admin/v1/coupon/add',
    method: 'post',
    data
  })
}

// 8.8活动
export function prizePool88List(query) {
  return request({
    url: '/jbl-marketing/api/admin/v1/prizePoolOne/getPageList',
    method: 'get',
    params: query
  })
}

export function prizePool88Add(data) {
  return request({
    url: '/jbl-marketing/api/admin/v1/prizePoolOne/add',
    method: 'post',
    data
  })
}

export function prizePool88Update(data) {
  return request({
    url: '/jbl-marketing/api/admin/v1/prizePoolOne/updateById',
    method: 'post',
    data
  })
}

export function prizePool88Detail(query) {
  return request({
    url: '/jbl-marketing/api/admin/v1/prizePoolOne/getById',
    method: 'get',
    params: query
  })
}
